import pygame

"""
红军静态对象
"""


class Army(pygame.sprite.Sprite):
    def __init__(self, x, y, image):
        super(Army, self).__init__()
        self.pos_x = x
        self.pos_y = y
        self.image = image
        x, y, w, h = self.image.get_rect()
        self.rect = pygame.Rect(self.pos_x, self.pos_y, w, h)

    def draw(self, surface, view_x, view_y):
        surface.blit(self.image, (self.pos_x - view_x, self.pos_y - view_y))
